﻿using System;

namespace HlELock.Domain.Entities
{
    /// <summary>
    /// 开卡记录
    /// </summary>
    public class CardLog : EntityBase
    {
        /// <summary>
        /// 卡号
        /// </summary>
        public string CardNumber { get; set; }

        /// <summary>
        /// 卡类型
        /// </summary>
        public string CardType { get; set; }

        /// <summary>
        /// 房间号
        /// </summary>
        public string RoomNumber { get; set; }

        /// <summary>
        /// 卡操作
        /// </summary>
        public CardActionType CardAction { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeinTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

    }

    public enum CardActionType
    {
        /// <summary>
        /// 开卡
        /// </summary>
        开卡,
        /// <summary>
        /// 注销卡
        /// </summary>
        注销卡,
    }
}
